import com.lagou.edu.mapper.TbResumeMapper;
import com.lagou.edu.pojo.TbResume;
import com.lagou.edu.service.TbResumeService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

/**
 * @author: liujunling
 * @createDate: 2020/4/20
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
public class test {


  @Autowired
  private TbResumeMapper tbResumeMapper;

  @Test
  public void test(){

    List<TbResume> all = tbResumeMapper.findAll();
    for (int i = 0; i < all.size(); i++) {
      System.out.println(all.get(i));
    }

  }
}
